'use strict'


import Http from '../kit/HttpKit'
import Api from './Api'

/**
* 常用模块
**/

const URL_UPLOAD_IMAGE = Api.API_URL + '/common/uploadImage'


const getQiniuToken = (callback)=>{
	var url = Api.API_URL + '/common/getQiniuToken';
	let data = {};
	data.api_token = Api.getApiToken();
	data.api_user_id = Api.getApiUserId();
	Http.post(url, data, json=>{
		Api.getDataCB(json, callback);
	});
}


export default{
	getQiniuToken,
	URL_UPLOAD_IMAGE
}
